package top.jolyoulu.codegenweb.entity.bo.form;


import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Author: JolyouLu
 * @Date: 2023/3/25 15:51
 * @Description
 */
@Data
@Accessors(chain = true)
public class DataSourceInfoFormBO {

    /**id*/
    private String id;

    /**数据库类型(1.mysql)*/
    @NotNull(message = "databaseType不能为空")
    private Integer databaseType;

    /** 连接地址 */
    @NotNull(message = "host不能为空")
    private String host;

    /** 连接端口 */
    @NotNull(message = "port不能为空")
    private String port;

    /**连接库名*/
    private String schemaName;

    /**用户名*/
    @NotNull(message = "username不能为空")
    private String username;

    /**密码*/
    @NotNull(message = "password不能为空")
    private String password;

}
